//
//  HomeCookingCell.m
//  100道菜
//
//  Created by aoyolo on 15/11/4.
//  Copyright © 2015年 李祖铜. All rights reserved.
//

#import "HomeCookingCell.h"

#import "HomeModel.h"
#import "UIImageView+WebCache.h"
#import <MediaPlayer/MediaPlayer.h>



@implementation HomeCookingCell

- (void)awakeFromNib {
    // Initialization code

}

//网络加载展示cell的数据
-(void)setHomeCooking:(HomeModel *)homemodel
{
    self.labeltitle.text = homemodel.title;
    self.labeldescrip.text = homemodel.descrip;
    [self.imgView sd_setImageWithURL:[NSURL URLWithString:homemodel.image] placeholderImage:[UIImage imageNamed:@"image"]];
    
    
}

- (IBAction)onVideo:(UIButton *)sender {
    
    UILabel *label = sender.superview.subviews[1];
    if ([_delegate respondsToSelector:@selector(buttonDidcheak:)]) {
        [_delegate buttonDidcheak:label.text];

    }
}























@end
